//如果有前一页跳转
function hasPre(hasPre, prePage, url) {
    if (hasPre == true) {
        window.location.href = url + prePage;
    }
}

//如果有后一页跳转
function hasNext(hasNext, nextPage, url) {
    if (hasNext == true) {
        window.location.href = url + nextPage;
    }
}